
/*
 * @Description: 
 * @Author: rendc
 * @Date: 2024-10-12 16:34:18
 * @LastEditors: rendc
 * @LastEditTime: 2024-10-12 16:46:39
 */
import java.util.List;

/**
 * Bank
 */
public class Bank {
  // 成员属性
  private List<Account> accounts;

  // 构造器
  public Bank(List<Account> accounts) {
    this.accounts = accounts;
  }

  // 转账
  public void transfer(Account from, Account to, double amount) {
    // bank.transfer(a1, a2, 500.0);
    from.transfer(to, amount);

  }
}